home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13207 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: teal.csn.net!not-for-mail
  2. From: thads@csn.net (Thad Smith)
  3. Newsgroups: comp.programming,comp.sys.sgi.misc,comp.lang.c
  4. Subject: Re: C pointer question.
  5. Date: 4 Apr 1996 22:15:45 -0700
  6. Organization: T3 Systems
  7. Message-ID: <WlHZxQ9ytRHf089yn@csn.net>
  8. References: <315BFDBB.773C@wight.hursley.ibm.com> <4jlhpl$i3c@hn.ocbbs.gen.nz>
  9.  <31616BAF.5BAB@datalytics.com> <3162659B.6201@wight.hursley.ibm.com>
  10. Reply-To: ThadSmith@acm.org
  11. NNTP-Posting-Host: 199.117.27.22
  12.  
  13. In article <3162659B.6201@wight.hursley.ibm.com>,
  14. Max Waterman <dwater@wight.hursley.ibm.com> wrote:
  15.  
  16. >Ie what are the arguments for :
  17. >
  18. >char    name1,
  19. >    name2,
  20. >    name3;
  21. >
  22. >over :
  23. >
  24. >char name1;
  25. >char name2;
  26. >char name3;
  27. >
  28. >?
  29. >
  30. >Aren't they identical?
  31.  
  32. One minor reason to prefer the latter is that if a syntax error were
  33. found in name1, the compiler would probably not recover parsing until
  34. the semicolon.  This would affect the number of error messages shown
  35. and the readability of them.  Obviously the error needs to be fixed --
  36. the issue is whether you can gain some other useful diagnostics on the
  37. same pass.
  38.  
  39. Thad
  40.